<!DOCTYPE html>
    <script src="{{static('js/jquery.min.js')}}"></script>
<!-- saved from url=(0030)https://my.qidian.com/bookcase -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>我的书架</title>
    <meta name="keywords" content="小说,小说网,玄幻小说,武侠小说,都市小说,历史小说,网络小说,言情小说,青春小说,原创网络文学">
    <meta name="description" content="小说阅读,精彩小说尽在起点中文网. 起点中文网提供玄幻小说,武侠小说,原创小说,网游小说,都市小说,言情小说,青春小说,历史小说,军事小说,网游小说,科幻小说,恐怖小说,首发小说,最新章节免费">
    <link rel="icon" type="image/x-icon" href="https://qidian.gtimg.com/qdp/img/favicon.c443c.ico">
    
<link rel="stylesheet" data-ignore="true" href="{{ static('css/index.6b94b.css')}}">

    <script src="{{ static('js/user/stats.js')}}" name="MTAH5" sid="500445303" cid="500446496"></script><script>document.domain ='qidian.com';</script>
    <script>var speedTimer = [], speedZero = new Date().getTime();</script>


</head>
<body class="shelf" style="zoom: 1;">
            <div class="personal-header" data-l1="1">
                <div class="header-wrapper">
                    <div class="header-logo">
                        <a href="https://my.qidian.com/">个人中心</a>
                    </div>
                    <ul class="header-nav">
                        <li class="header-nav-li">
                            <a href="{{ url('user:user_info') }}" class="header-nav-a " accesskey="1" data-eid="qd_M01"><i class=""></i>我的首页</a>
                        </li>
                        <li class="header-nav-li" id="headerNav">
                            <a href="{{ url('user:my_book_list') }}" class="header-nav-a active" accesskey="2" data-eid="qd_M02"><i class=""></i>我的书架</a>
                        </li>
                        <li class="header-nav-li">
                            <a href="#" class="header-nav-a " accesskey="3" data-eid="qd_M03"><i class=""></i>消息中心</a>
                        </li>
                        <li class="header-nav-li">
                            <a href="http://game.qidian.com/" class="header-nav-a" target="_blank" accesskey="4" data-eid="qd_M04"><i class=""></i>游戏</a>
                        </li>
                    </ul>
                    <a href="{{ url('user:user_info') }}" id="headerLog" class="header-log" data-eid="qd_M06" data-target="headerDropList">{{ user.username }}</a>
                    <div class="header-goHome">
                        <a href="/" target="_blank" accesskey="5" data-eid="qd_M05">首页</a>
                    </div>
                </div>
                <ul id="headerDropList" class="header-drop">
                    <li>
                        <a href="{{ url('user:user_info') }}" data-eid="qd_M08">个人设置</a>
                    </li>
                    <li>
                        <a href="{{ url('user:user_info') }}" data-eid="qd_M09">我的主页</a>
                    </li>
                    <li>
                        <a href="{{ url('user:logout') }}" id="elLoginOut" data-eid="qd_M11">退出</a>
                    </li>
                </ul>
            </div>
        <div class="qdp-wrapper">
    <div class="qdp-content" data-l1="3">
        
        <div class="shelf-content" id="addToShelfForm" data-l2="2">
            <div id="tabView" class="ui-tab-tabs">
                <a href="javascript:;" class="checked" onclick="book()" id="elEditTab" data-rel="tabTarget1">编辑推荐</a>
                <a href="javascript:;" onclick="game()" id="elGameTab" data-rel="tabTarget2">游戏推荐</a>
            </div>
            <label class="recmd-add blue unloading" data-l3="1"><a class="ibookclose" id="closeRecBook" data-eid="qd_M193" href="javascript:"><i class=""></i></a></label>


            <div class="ui-tab-contents shelf-content-wrapper" id="book_tj">
                <div id="tabTarget1" class="ui-tab-content checked">
                    <ul class="recmd-list" id="elRecList1" data-l3="1" style="height: 169px;">
                                {% for i in tj_book %}
                                <li class="recmd-list-item">
                                    <input type="checkbox" value="{{ i.id }}" checked="">
                                    <a href="{{ url('book:book_info', args=(i.id, )) }}" target="_blank" class="recmd-list-a" data-eid="qd_M194" data-bid="{{ i.id }}">
                                        <div class="recmd-commet">{{ i.name }}</div>
                                        <img src="{{ i.book_image }}" alt="" class="recmd-list-img">
                                        <div class="recmd-list-title" data-eid="qd_M195" data-bid="{{ i.id }}">{{ i.name }}</div>
                                    </a>
                                </li>
                            {% endfor %}
                    </ul>
                </div>
                <div id="tabTarget2" class="ui-tab-content">
                    <ul class="recmd-list ui-loading" id="elRecList2" data-l3="1" style="height: 169px;">
                    </ul>
                </div>
            </div>

            <div class="ui-tab-contents shelf-content-wrapper" style="display: none" id="game_tj">

                <div id="tabTarget1" class="ui-tab-content checked">
                    <ul class="recmd-list ui-loading ui-loading-animation" id="elRecList2" data-l3="1" style="height: 169px; transition: height 200ms ease 0s;">


        <li class="recmd-list-item">
            <a href="http://cpgame.qd.game.qidian.com/Home/Index/directLogin/name/sgqyj/way/1?qd_game_key=sgqyj232x142a.jpg&amp;qd_dd_p1=45348" data-eid="qd_M215" data-qd_dd_p1="1" data-rid="1" target="_blank" class="recmd-list-a">
                <div class="recmd-gamecommet"></div>
                <img src="https://img1.qidian.com/upload/gamesy/2019/11/26/20191126185509wkdh03gtl6.jpg" alt="三国群英纪" class="recmd-list-gameimg">
                <div class="recmd-list-gametitle">三国群英纪</div>
            </a>
        </li>

        <li class="recmd-list-item">
            <a href="http://cpgame.qd.game.qidian.com/Home/Index/directLogin/name/mc/way/1?qd_game_key=mc232x142b.jpg&amp;qd_dd_p1=46561" data-eid="qd_M216" data-qd_dd_p1="1" data-rid="2" target="_blank" class="recmd-list-a">
                <div class="recmd-gamecommet"></div>
                <img src="https://img.qidian.com/upload/gamesy/2019/12/09/20191209164457jjmarscfkd.jpg" alt="魔刹" class="recmd-list-gameimg">
                <div class="recmd-list-gametitle">魔刹</div>
            </a>
        </li>

        <li class="recmd-list-item">
            <a href="http://cpgame.qd.game.qidian.com/Home/Index/directLogin/name/zzsg/way/1?qd_game_key=zzsg232x142&amp;qd_dd_p1=38919" data-eid="qd_M217" data-qd_dd_p1="1" data-rid="3" target="_blank" class="recmd-list-a">
                <div class="recmd-gamecommet"></div>
                <img src="//bossaudioandcomic-1252317822.image.myqcloud.com/activity/document/dbb49b96256f981380dc1ffca77190c8.jpg" alt="真战三国" class="recmd-list-gameimg">
                <div class="recmd-list-gametitle">真战三国</div>
            </a>
        </li>


    </ul>
                </div>

                <div id="tabTarget2" class="ui-tab-content">
                    <ul class="recmd-list ui-loading" id="elRecList2" data-l3="1" style="height: 169px;">
                    </ul>
                </div>
            </div>

        </div>
        
            <div class="qdp-border table-x shelf-default shelf-table" data-l2="3">
                <div class="table-msg" data-l3="2">
                    <h2 class="shelf-title" id="shelfTitle" data-gid="-100">默认分组</h2>共<strong class="dark ml5 mr5" id="elMoTotal">{{ book.nums }}</strong><span id="shelfAmount">本书籍</span>
                    
                    <form id="shelfFilterForm" class="table-filter shelf-filter">
                        <input type="hidden" name="c" value="" class="elInputC">
                    </form>
                    
                </div>
                <div class="table-size" data-l3="2">
                    <table id="shelfTable" class="ui-table table-checkbox" data-count="2">
                        <thead>
                          <tr>
                            <th scope="col"><label for="chkBookNameAll"></label></th>
                            <th scope="col">书名</th>
                            <th scope="col" width="70"></th>
                            <th scope="col" width="90">作者</th>
                            <th scope="col" width="60">上一次阅读</th>
                            <th scope="col" width="20"></th>
                          </tr>
                        </thead>
                        <tbody>
                            
                            {% for i in book.object_list %}
                                 <tr class="">
                                    <td class="col1"><input type="checkbox" class="elWcheckbox" id="chkBookName0" name="bookname" value="2939492"><label for="chkBookName0"></label></td>
                                    <td class="col2">
                                    <span class="shelf-table-name">
                                        <b>
                                            <a href="{{ url('book:book', args=(i.book.group.id, )) }}" data-eid="qd_M219" target="_blank" class="fen-category">「{{ i.book.group.name }}」</a>
                                            <a href="{{ url('book:book_info', args=(i.book.id, )) }}" target="_blank" title="{{ i.book.name }}" data-bid="{{ i.id }}" data-eid="qd_M198">{{ i.book.name }}</a>
                                        </b>
                                        <a href="{{ url('book:book_content') }}?book={{ i.book.id }}&num={{ i.book.book_info_set.last().order_id }}" data-eid="qd_M218" data-cid="{{ i.book.id }}" class="shelf-table-chapter blue" target="_blank" title="{{ i.book.book_info_set.last().content_name }}">{{ i.book.book_info_set.last().content_name }}</a>
                                    </span>
                                    <a href="https://book.qidian.com/subscribe/2939492" target="_blank" data-eid="qd_M199"></a>
                                    </td>
                                    <td class="col3 font12"></td>
                                    <td class="col4">
                                        <a  target="_blank" title="{{ i.book.author }}" class="shelf-table-author font12" data-eid="qd_M200">{{ i.book.author }}</a>
                                    </td>
                                            <td class="col5"><a href="{{ url('book:book_content') }}?book={{ i.book.id }}&num={{ i.book_info.order_id }}" class="spTips font12" target="_blank" data-eid="qd_M201" data-cid="47992652">{{ i.book_info.content_name }}</a></td>

                                        <td class="col6 shlef-menu"><a href="javascript:" onclick="del({{ i.book.id }})" class="blue" data-target="forList0" data-eid="qd_M203">
                                            <img src="{{ static('images/ruobis.jpeg') }}" title="删除"/>
                                        </a>
                                        </td>
                                </tr>
                            {% endfor %}
                        </tbody>
                    </table>
                    
                    <div class="ui-loading" style="display:none;"><i class="ui-loading-icon"></i></div>

<div class="laypage-main" style="margin-left: 20%">
{% if page.number > 1 %}
                      <a href="?num=1&group={{ group_id }}" class="laypage-last" title="首页">首页</a>
{% endif %}
               {% for i in  [2, 1]%}
                    {% if page.number - i < page.num_pages and page.number - i > 0 %}
                      <a href="?num={{ page.number - i  }}">{{ page.number - i }}</a>
                    {% endif %}
                {% endfor %}
                      <span class="laypage-curr">{{ page.number }}</span>
                {% for i in  range(1, 3)%}

                    {% if page.number + i <= page.num_pages %}
                      <a href="?num={{ page.number + i }}">{{ page.number + i }}</a>
                    {% endif %}
                {% endfor %}
            {% if page.number + 3 <= page.num_pages %}
                  <span>…</span>
            {% endif %}
                {% if page.has_next() %}
                    <a href="?num={{ page.number + 1 }}" class="laypage-next">下一页</a>
                    <a href="?num={{ page.num_pages }}" class="laypage-last" title="尾页">尾页</a>
            {% endif %}

</div>
                </div>
                
            </div>
    </div>

    <script id="tplDialogGroupMove" type="text/ejs-template">
    <form class="table-x shelf-dialog-move" action="/ajax/BookShelf/Move" method="get" style="width:440px;">
        <div class="table-size">
            <div class="dialog-move">
                <!-- <input type="radio" id="newGroupId" name="groupId" value="" class="dialog-move-add"> -->
                <a href="javascript:;" class="blue" id="elNewGroup"><b>＋新建分组</b></a>
            </div>
            <div class="dialog-move-table">
                <table class="ui-table">
                    <tbody class="bg-white"></tbody>
                </table>
            </div>
            <div class="table-null-x dn">暂无自建分组</div>
            <div class="ui-loading"><i class="ui-loading-icon"></i></div>
            <textarea class="dn">
                <% listInfo.forEach(function(obj, index){ %>
                <tr>
                    <td class="col1"><%= obj.groupName %></td>
                    <td class="col2" width="100" align="right"><%= obj.bookCount %>本</td>
                    <td class="col3" width="20">
                        <input type="radio" name="gid" value="<%= obj.groupId %>" class="dialog-move-select">
                        <span class="icon icon-right"></span>
                    </td>
                </tr>
                <% }) %>
            </textarea>
            <input type="hidden" id="iptIDGroupFrom" name="bids">
            <input type="hidden" name="_csrfToken" value="" id="elMoveCsrf" >
         </div>
    </form>
    </script>
    <script id="tplGroupName" type="text/ejs-template">
    <div class="shelf-dialog-name">
        <h3><label for="iptNameEdit">分组名</label></h3>
        <form action="/ajax/BookShelf/AddGroup" method="post" class="qdp-form">
            <div class="ui-input-x" style="width:400px;">
                <input id="iptNameEdit" maxlength="20" required name="gname">
                <input type="hidden" id="elBids" name="bids">
                <input type="hidden" id="elType" name="type">
                <input type="hidden" name="_csrfToken" value="" id="elCsrfto" >
                <div class="ui-input"></div>
            </div>
            <div class="qdp-form-button">
                <input type="submit" id="groupNameSubmit" class="clip">
            </div>
        </form>
    </div>
    </script>
    <script id="tplEditGroupName" type="text/ejs-template">
    <div class="shelf-dialog-name">
        <h3><label for="iptNameEdit">分组名</label></h3>
        <form action="/ajax/BookShelf/UpdateGroup" method="post" class="qdp-form">
            <input type="hidden" id="iptGroupId" name="gid" value="">
            <input type="hidden" name="_csrfToken" value="" id="elCsrftoken" >
            <div class="ui-input-x" style="width:400px;">
                <input id="iptNameEdit" maxlength="20" required name="gname">
                <div class="ui-input"></div>
            </div>
            <div class="qdp-form-button">
                <input type="submit" id="groupNameSubmit" class="clip">
            </div>
        </form>
    </div>
    </script>
            
            <div class="tucao">
            </div>
            
            <div class="go-top dn">
                <div class="go-top-wrap">
                    <a href="https://my.qidian.com/bookcase#" class="icon-go-top bTips" title="返回顶部"><i class="iconfont icon-backtop"></i></a>
                </div>
            </div>
        </div>
            <div class="personal-footer">
                <div class="footer-sub">
                    <a href="https://www.yuewen.com/" target="_blank">阅文集团</a>旗下网站：
                    <a href="https://www.qidian.com/" target="_blank" class="mr8">起点中文网</a>
                    <a href="https://www.qdmm.com/" target="_blank" class="mr8">起点女生网</a>
                    <a href="http://chuangshi.qq.com/" target="_blank" class="mr8">创世中文网</a>
                    <a href="http://yunqi.qq.com/" target="_blank" class="mr8">云起书院</a>
                    <a href="https://www.hongxiu.com/" target="_blank" class="mr8">红袖添香</a>
                    <a href="https://www.readnovel.com/" target="_blank" class="mr8">小说阅读网</a>
                    <a href="https://www.xs8.cn/" target="_blank" class="mr8">言情小说吧</a>
                    <a href="https://www.xxsy.net/" target="_blank" class="mr8">潇湘书院</a>
                    <a href="http://www.tingbook.com/" target="_blank" class="mr8">天方听书网</a>
                    <a href="http://www.lrts.me/" target="_blank" class="mr8">懒人听书</a>
                    <a href="http://yuedu.yuewen.com/" target="_blank" class="mr8">阅文悦读</a>
                    <a href="https://www.yuewen.com/app.html" target="_blank" class="mr8">QQ阅读</a>
                    <a href="https://www.yuewen.com/app.html#appqd" target="_blank" class="mr8">起点读书</a>
                    <a href="https://www.yuewen.com/app.html#appzj" target="_blank" class="mr8">作家助手</a>
                    <a href="https://www.webnovel.com/" target="_blank" class="mr8">起点国际版</a>
                </div>
                <div class="footer-menu">
                    <a href="https://www.qidian.com/about/intro" target="_blank">关于起点</a>
                    <a href="https://www.qidian.com/about/contact" target="_blank">联系我们</a>
                    <a href="https://join.book.qq.com/index.html" target="_blank">加入我们</a>
                    <a href="https://www.qidian.com/help/index/2" target="_blank">帮助中心</a>
                    <a href="http://123.206.70.240/online/?cid=0&amp;uid=10&amp;code=sOEt7yHh8+2e+J52ENHbLQ==" class="commitAdvice" target="_blank">提交建议</a>
                    <!-- <a href="//wwwploy.qidian.com/help/about_link.aspx" target="_blank">合作伙伴</a> -->
                    <!-- <a href="//bbs.qidian.com" target="_blank">起点论坛</a> -->
                    <!-- <a href="//webgame.qidian.com/jiazhang.html" target="_blank">家长监护工程</a> -->
                </div>
                <div class="footer-copyright">
                    <p>Copyright © 2002-2019 www.qidian.com All Rights Reserved版权所有 上海玄霆娱乐信息科技有限公司</p>
                    <p>网站备案/许可证号：<a target="_blank" href="http://beian.miit.gov.cn/publish/query/indexFirst.action">沪B2-20080046-1</a>  出版经营许可证：新出发沪批字第U3718号  网络文化经营许可证：沪网文[2015]0081-031 新出网证（沪）字010 </p>
                    <p>请所有作者发布作品时务必遵守国家互联网信息管理办法规定，我们拒绝任何色情小说，一经发现，即作删除！</p>
                    <p>本站所收录作品、社区话题、书库评论及本站所做之广告均属其个人行为，与本站立场无关</p>
                </div>
            </div>
            <script>
                function game() {
                    var book = document.getElementById("book_tj");
                    var games = document.getElementById("game_tj");
                    var book_tj = document.getElementById("elEditTab");
                    var game_tj = document.getElementById("elGameTab");

                    book.style.display = "none";
                    games.style.display = "block";
                    book_tj.setAttribute("class", "");
                    game_tj.setAttribute("class", "checked")

                }
                function book() {
                    var book = document.getElementById("book_tj");
                    var games = document.getElementById("game_tj");
                    var book_tj = document.getElementById("elEditTab");
                    var game_tj = document.getElementById("elGameTab");
                    book.style.display = "block";
                    games.style.display = "none";
                    book_tj.setAttribute("class", "checked");
                    game_tj.setAttribute("class", "")
                }

                function del(book_id) {
                    var params = {
                        "book_id": book_id
                    };
                    $.ajax({
                        url:"{{ url('user:my_book_list') }}",
                        type: "DELETE",
                        data: JSON.stringify(params),
                        headers:{ "X-CSRFtoken":"{{ csrf_token }}"},
                        contentType: "application/json",
                        success: function (resp) {
                            if (resp.code == "0"){
                                // 刷新当前界面
                                alert(resp.errmsg)
                                location.href = ""
                            }else if(resp.code){
                                alert(resp.errmsg);
                            }else {
                                alert("请先登录")
                                location.href="/login"
                            }
            }
        })
                }
            </script>

        

<script>
  (function(){
      //获取到按钮和对应显示隐藏的标签
      var btn = document.getElementById('headerLog');
      var box = document.getElementById('headerDropList');
      //初始化时间
      var timer = null;
      //鼠标移入按钮时候显示标签
      box.onmouseover = btn.onmouseover = function(){
        if(timer) clearTimeout(timer);
          box.style.marginLeft = "70%"
          box.style.display = 'block';

      }
      //移出后半秒标签内容自动消失
      box.onmouseout = btn.onmouseout = function(){
          timer = setTimeout(function(){
            box.style.display = 'none';
          },500);
      }
  })();
</script>


</body></html>